widget-factory: Add a default button
authorMatthias Clasen <mclasen@redhat.com>
Sun, 4 Jul 2021 03:00:10 +0000 (23:00 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 4 Jul 2021 03:01:14 +0000 (23:01 -0400)
Mark one of the buttons in the message dialog
as default, so we can see how the default appears
visually.

demos/widget-factory/widget-factory.ui

index 6800cffdd1c516206312f8cec26ff717f9bc067c..c37ade2945839d458d18f9e6a5c03e59c700b1f0 100644 (file)
@@ -2902,7 +2902,7 @@ bad things might happen.</property>
 
     <action-widgets>
       <action-widget response="cancel">cancel_info_dialog</action-widget>
-      <action-widget response="ok">doit_info_dialog</action-widget>
+      <action-widget response="ok" default="true">doit_info_dialog</action-widget>
     </action-widgets>
   </object>
   <object class="GtkDialog" id="action_dialog">